package thread;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 25397
 * Date: 2022-03-22
 * Time: 22:53
 */

class MyThread extends Thread{
    @Override
    public void run(){
        System.out.println("hello thread");
    }
}
//最基本的创建线程方法
public class Demo1 {
    public static void main(String[] args) {
        Thread t=new MyThread();
        t.start();
    }
}
